% TEST_ID: LANG-EXPAND-0066
% CATEGORY: language/convert
% 测试转成 cellstr

function test_to_cellstr
    A = ["Past", "Present", "Future"];
    C = cellstr(A)
    result = {'Past' 'Present' 'Future'};
    assert_isequal(C, result);

    A = ['abc '; 'defg'; 'hi  '];
    C = cellstr(A)
    result = {'abc'
        'defg'
        'hi'
    };
    assert_isequal(C, result);

    A = {"sdf", "dasf"};
    C = cellstr(A);
    result = [{'sdf'} {'dasf'}];
    assert_isequal(C, result);
    %cellstr({1, "ab"})
end


function assert_isequal(x, y)
    assert(isequal(x, y));
end